#include "com.h"

int main()
{
  int fd = open(FILE_NAME, O_WRONLY);
  if(fd < 0){
    perror("open");
    return 1;
  }

  char msg[] = "Hello Linux!";
  while(1){
    write(fd, msg, strlen(msg));
    sleep(1);
  }

  close(fd);
  return 0;
}

